package controller

import (
	"ginjt/fileupload"
	"github.com/gin-gonic/gin"
)

func FileController(router *gin.Engine,group string)  {

	v1 := router.Group(group)
	{
		v1.POST("/upload/single", fileupload.UploadFile)


		v1.POST("/upload", fileupload.UploadFiles)


		v1.GET("/download", fileupload.DownFileInUrl)

		v1.GET("/download/:year/:filename", fileupload.DownFileRest)
	}


}